package org.example.Server.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.Server.model.commen.Direction;
import org.example.Server.model.commen.Function;
import org.example.Server.model.commen.QsPoint;

import java.util.List;

@Mapper
public interface CommenEnumMapper {

    /**
     * 获取试卷方向
     *
     * @return
     */
    @Select("select direction_id,direction_title,image,description from direction")
    List<Direction> getDirectionLsit();

    /**
     * 获取题库知识点
     *
     * @return
     */
    List<Direction> getQspoint(Integer direction_id);

    QsPoint getPointByQsId(Integer qsId);

    List<Function> getFunction();
}
